import service from '/@/utils/request';

export const useSystemTaskQueryApi = (code: string,) => {
    return service({
        url: `v0/system/task/query`,
        method: 'GET',
        params: { code: code },
    });
}
export const useSystemTaskPageApi = (formData?: object) => {
    return service({
        url: `v0/system/task/page`,
        method: 'GET',
        data: formData
    });
}

export const useSystemTaskUpdateApi = (formData: object) => {
    // 将所有value字段强制转换为string
    return service({
        url: `v0/system/task/update`,
        method: 'POST',
        data: formData
    });
}



